<template>
	<view class="commodity-item">
		<image :src="shopItem.imgURL" mode="widthFix"></image>
		<view class="">
			<view class="">
				{{shopItem.title}}
			</view>
			<view class="commodity-item-price-unit">
				<view class="price_color">
					¥{{shopItem.price}}
				</view>
				<view class="">
					x{{shopItem.piece}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			shopItem: {
				type: Object
			}
		},
		created() {
			// console.log(this.shopItem)
		}
	}
</script>

<style lang="scss">
	.commodity-item {
		background-color: rgba(242, 242, 242, 1);
		display: flex;
		flex-direction: row;
		justify-content: flex-start;
		padding: 30upx 40upx;
		// border:1px solid red;
		
		image {
			width: 300upx;
			margin-right: 20upx;
		}
		
		
		font-weight: normal;
		color: #666666;
		font-weight: 400;
		font-style: normal;
		font-size: 14px;
		
		.commodity-item-price-unit {
			margin-top: 20upx;
			display: flex;
			flex-direction: row;
			justify-content: space-between;
		}
	}
</style>
